import { showLoading,  hideLoading } from '../mask.js';

Component({
	properties: {
		// 这里定义了couponBigPath属性，属性值可以在组件使用时指定
		couponBigPath: {
		  type: String
		},
		couponInstanceCode: {
		  type: String
		}
	},
	data: {
		msg: '点击屏幕关闭'
	},
	
	attached: function() {
		showLoading();
	},
	
	methods: {
		closeZoomImage: function() {
			this.triggerEvent('closeZoomImage', { isShowBigImage: false });
		},
		loadedImage: function() {
			console.log("图片加载完毕!");
			hideLoading();
		}
	}
})